package springDemo.util;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class ApplicationContextUtil {
	private static ApplicationContext applicationContext=null;
	public static ApplicationContext getApplicatonContext() {
		if(applicationContext!=null) {
			return applicationContext;
		}
		applicationContext=new ClassPathXmlApplicationContext("./springDemo/applicationContext.xml");
		return applicationContext;
	}

}
